package com.dlg.commons.constant;

import java.math.BigInteger;

/**
 * 字典常量
 * 
 * @author xpp
 * @date 2017年3月24日 下午2:25:06
 */
public class DictionaryConstants {

	/**
	 * 是 或 否
	 */
	public interface BoolConstants {

		/**
		 * 是
		 */
		public static final short YES = 1;

		/**
		 * 否
		 */
		public static final short NO = 0;

	}

	/**
	 * 订单状态(8等待雇员同意
	 * 9雇员拒绝,10.等待同意,11.拒绝接单,20.等待开工,21.正在干活中,22.等待验收,30.待收款,40.已完成)
	 */
	public interface OrderStatus {
		
		/**
		 * 有人雇佣
		 */
		public short hired = DigitConstant.SHORT_SIX;
		/**
		 * 拒绝雇佣
		 */
		public short refuseHired = DigitConstant.SHORT_SEVEN;

		/**
		 * 等待雇员同意
		 */
		public short waitForEmployeeConsent = DigitConstant.SHORT_EIGHT;

		/**
		 * 雇员拒绝
		 */
		public short employeeRefuse = DigitConstant.SHORT_NINE;

		/**
		 * 等待同意
		 */
		public short waitForConsent = 10;

		/**
		 * 拒绝接单
		 */
		public short refuseOrdersTaking = 11;

		/**
		 * 等待开工
		 */
		public short waitingToStart = 20;

		/**
		 * 正在干活中
		 */
		public short working = 21;

		/**
		 * 等待验收
		 */
		public static final short waitingForAcceptance = 22;

		/**
		 * 待收款
		 */
		public short accountReceivable = 30;

		/**
		 * 确认完成(系统)
		 */
		public short finishForSystem = 31;

		/**
		 * 已完成
		 */
		public short finish = 40;
		/**
		 * 取消
		 */
		public short cancel = 50;
	}

	/**
	 * 返回标识
	 */
	public interface Result {

		/**
		 * 成功
		 */
		public final static int SUCCESS = 0;

		/**
		 * 失败
		 */
		public final static int FAIL = 1;
	}

	/**
	 * 代理商税率(省3%,市5%,区10%,乡镇52%)
	 */
	public interface AgentTaxRate {

		/**
		 * 省
		 */
		public static final Short PROVINCE = 3;

		/**
		 * 市
		 */
		public static final Short CITY = 5;

		/**
		 * 区
		 */
		public static final Short AREA = 10;

		/**
		 * 乡
		 */
		public static final Short VILLAGE = 52;

	}

	/**
	 * 平台交易编号
	 */
	public static final BigInteger PLATFORM_BUSINESS_NUMBER = new BigInteger(
			"7777777777777");
	
	/**
	 * 打零工平台
	 */
	public static final String PLATFROM_ODDJOB_NAME = "打零工平台";
}
